import {defineConfig} from 'umi';
import routes from './routes';
import defaultSetting from './defaultSetting'
import proxy from './proxy'

export default defineConfig({
    nodeModulesTransform: {
        type: 'none',
    },
    // mock: false,
    base: "admin",
    hash: true,
    // publicPath: 'http://www.xxx.com/cdn/',
    outputPath: "build",
    title: defaultSetting.title,
    //浏览器兼容
    targets: {
        ie: 11
    },
    proxy: proxy['dev'],
    /**
     * 约定式路由: 当没有配置routes时,自动到pages目录下匹配组件
     */
    routes,
    fastRefresh: {},
    theme: {
        '@primary-color': defaultSetting.primaryColor
    }
});
